<script setup lang="ts">
import "element-plus/dist/index.css";
import { ElButton } from "element-plus";
import { add } from "swiftlc-utils";

add(1, 2);

const props = withDefaults(defineProps<{
  type: string
}>(), {
  type: 'primary'
});

// slots
defineSlots<{
  default(props: {}): any;
}>();

const emits = defineEmits<{
  click: [];
}>();
</script>

<template>
  <div>
    <el-button :type="props.type as any" @click="() => {
      emits('click');
    }
      ">
      <slot></slot>
    </el-button>
  </div>
</template>

<style scoped></style>
